import hyRequest from '@/service/index'

// 乡村振兴-查询全部
export const getRevitalizationList = (form?: any) => {
  return hyRequest.post({
    url: '/village/revitalization/page',
    data: form,
    isFormData: true
  })
}

// 乡村振兴-新增
export const addRevitalization = (form?: any) => {
  return hyRequest.post({
    url: '/village/revitalization/page',
    data: form
  })
}

// 乡村振兴-编辑
export const editRevitalization = (form?: any) => {
  return hyRequest.post({
    url: '/village/revitalization/update',
    data: form
  })
}

// 乡村振兴-删除
export const delRevitalization = (form?: any) => {
  return hyRequest.post({
    url: '/village/revitalization/update',
    params: form
  })
}

// 乡村振兴-批量删除
export const delBatchRevitalization = (form?: any) => {
  return hyRequest.post({
    url: '/village/revitalization/deleteBatch',
    params: form
  })
}

// 乡村振兴-审核通过
export const approveRevitalization = (form?: any) => {
  return hyRequest.post({
    url: '/village/revitalization/approved',
    data: form
  })
}

// 乡村振兴-审核未通过
export const rejectedRevitalization = (form?: any) => {
  return hyRequest.post({
    url: '/village/revitalization/rejected',
    data: form
  })
}
